package router

import (
	"fx_swift_ifcgate/internal/controller"
	"fx_swift_ifcgate/pkg/middleware"
)

func TransferRouter() {
	indexApiVer := miniApiVer.Group("transfer", middleware.CheckAuth())
	{
		indexApiVer.POST("internationTransfer", controller.InternationTransfer)
		indexApiVer.POST("domesticTransfer", controller.DomesticTransfer)
		indexApiVer.POST("internationTransferList", controller.InternationTransferList)
		indexApiVer.POST("domesticTransferList", controller.DomesticTransferList)
		indexApiVer.POST("tradeReceiptList", controller.TradeReceiptList)
		indexApiVer.POST("submitTradeOrder", controller.SubmitTradeOrder)
		indexApiVer.POST("checkoutTradeAmount", controller.CheckoutTradeAmount)

		indexApiVer.GET("tradeOrderMappingInfo", controller.TradeOrderMappingInfo)
		indexApiVer.GET("tradeOrderDetail", controller.TradeOrderDetail)
		indexApiVer.GET("domesticTransferDetail", controller.DomesticTransferDetail)
	}
}
